<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
<title>{$title}</title>

<link href="/static/index/login/css/style.css" rel="stylesheet" type="text/css" />
<link href="/static/index/login/css/layer.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/static/index/login/js/jquery-1.8.3.min.js"></script>
</head>
<body onLoad="sendRequest()" >

<div class="videozz"></div>
	<video  autoplay muted loop poster="/static/index/login/images/fallba1ck.jpg">
		<source src="/static/index/login/images/mov.mp4">
		你的游览器不支持video支持
	</video>
<div class="box">
	<div class="box-a">
    <div class="m-2">
          <div class="m-2-1">
                <div class="m-2-2">
                   <input type="text" name="phone" id="phone" placeholder="请输入手机号" />
                </div>
                <div class="m-2-2">
                   <input type="password" name="pass" id="pass" placeholder="请输入密码"/>
                </div>
                <!-- <div class="m-2-2-1">
                   <input type="text" placeholder="请输入验证码"/>
                   <img src="/static/index/login/images/1.png"/>
                </div> -->
                <div class="m-2-2">
                   <button type="submit" id="login" value="登陆" /> 登陆
                </div>
          </div>
    </div>
    <div class="m-5">
    <div id="m-5-id-1">
    <div id="m-5-2">
    <div id="m-5-id-2">
    </div>
    <div id="m-5-id-3"></div>
    </div>
    </div>
    </div>
    <div class="m-10"></div>
    <div class="m-xz7"></div>
    <div class="m-xz8 xzleft"></div>
    <div class="m-xz9"></div>
    <div class="m-xz9-1"></div>
    <!-- <div class="m-x10"></div>
    <div class="m-x11"></div>
    <div class="m-x12 xzleft"></div>
    <div class="m-x13"></div>
    <div class="m-x14 xzleft"></div>
    <div class="m-x15"></div>
    <div class="m-x16 xzleft"></div>-->
    <div class="m-x17 xzleft"></div>
    <div class="m-x18"></div>
    <div class="m-x19 xzleft"></div>
    <div class="m-x20"></div>
    <div class="m-8"></div>
    <div class="m-9"><div class="masked1" id="sx8">蒸汽男孩论坛登录</div></div>
    <div class="m-11">
    	<div class="m-k-1"><div class="t1"></div></div>
        <div class="m-k-2"><div class="t2"></div></div>
        <div class="m-k-3"><div class="t3"></div></div>
        <div class="m-k-4"><div class="t4"></div></div>
        <div class="m-k-5"><div class="t5"></div></div>
        <div class="m-k-6"><div class="t6"></div></div>
        <div class="m-k-7"><div class="t7"></div></div>
    </div>
    <div class="m-14"><div class="ss"></div></div>
    <div class="m-15-a">
    <div class="m-15-k">
    	<div class="m-15xz1">
            <div class="m-15-dd2"></div>
        </div>
    </div>
    </div>
    <div class="m-16"></div>
    <div class="m-17"></div>
    <div class="m-18 xzleft"></div>
    <div class="m-19"></div>
    <div class="m-20 xzleft"></div>
    <div class="m-21"></div>
    <div class="m-22"></div>
    <div class="m-23 xzleft"></div>
    <div class="m-24" id="localtime"></div>
    </div>
</div>
<script src="/static/index/login/js/common.min.js"></script>
<script src="/static/index/login/js/layer.js"></script>
<!--ajax登录验证-->
  <script type="text/javascript">
    $(document).ready(function() {
      $("#login").click(function() {
        var phone = $('#phone').val().trim();
        var pass = $('#pass').val().trim();
        // console.log(phone);
        // console.log(pass);

        if(phone != '' || pass != ''){
          $.ajax({
            type : "POST",
            url : "index/Login/doLogin",
            data : {
              phone:phone,
              pass:pass
            },
            dataType : "JSON",
            success : function(data) {
              if(data.trim() == 'ok') {
                layer.msg('登录成功');
                window.location.href="/";
              } else {
                layer.msg('账号或密码错误');
              }
            }
          })
        }
      })
    })
  </script>
</body>
</html>
